<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查询所有</title>
</head>
<style type="text/css">
    table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
    table, th, td {border: 1px solid darkslategray;padding: 10px}
</style>
<body>
<div style="text-align: center">
    <span style="color: darkslategray; font-size: 30px">欢迎光临！</span>
    </hr>
    <table class="list">
        <tr>
            <td>id</td>
            <td>姓名</td>
            <td>密码</td>
            <td>性别</td>
            <td>生日</td>
            <td>编辑</td>
        </tr>
        <tr th:each="user : ${usersList}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.nam}"></td>
            <td th:text="${user.pwd}"></td>
            <td th:text="${user.sex==0}?'男':'女'"></td>
            <td th:text="${#dates.format(user.birth,'yyyy-MM-dd')}"></td>
            <td><a th:href="${#strings.append('delete?id=',user.id)}">删除</a>
                <a th:href="${#strings.append('toUpdate?id=',user.id)}">修改</a>
            </td>
        </tr>
    </table>

</div>
</body>
</html>